package cn.yangke.org.service;

import cn.yangke.org.domain.Shop;
import cn.yangke.basic.service.IBaseService;
import cn.yangke.org.domain.ShopAuditLog;
import cn.yangke.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yangke
 * @since 2022-06-12
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 商家入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 驳回
     * @param log
     */
    void reject(ShopAuditLog log);

    /**
     * 通过
     * @param log
     */
    void pass(ShopAuditLog log);

    /**
     * 激活店铺
     * @param shopId
     */
    void activation(Long shopId);

    /**
     * 查询不同状态的店铺数量
     * @return
     */
    List<ShopVo> queryEcharts();

    /**
     * 批量新增
     * @param shops
     */
    void batchSave(List<Shop> shops);
}
